import * as React from 'react';
import { connect } from 'dva';
import BaseLayout from './layouts/BaseLayout';
import { history } from './util';
import Routers from './router';

import './App.scss';
@connect((count: number) => count)
class App extends React.PureComponent<any, object> {
    constructor(props: any) {
        super(props);
    }
    public render() {
        return (
            <BaseLayout>
                <Routers history={history} />
            </BaseLayout>
        );
    }
}

export default App;
